<template>
	<view class="_secces bg_color">
		<view class="success" v-if="success">
			<img style="width: 280rpx; height: 280rpx; margin-top: 20vh" :src="config.getImage('deleteChengGong')" alt="" />
			<view class="modal_seccess">
				<view class="modal_text">删除成功</view>
				<view class="modal_con">已经删除! 返回列表!</view>
			</view>
			<view class="model_btn font28" @click="successReturn">返回</view>
		</view>
		<view class="success" v-else>
			<img style="width: 280rpx; height: 280rpx; margin-top: 20vh" :src="config.getImage('deleteShiBai')" alt="" />
			<view class="modal_seccess">
				<view class="modal_text">删除失败</view>
				<view class="modal_con">删除失败! 再去试一次!</view>
			</view>
			<view class="model_btn font28" @click="failReturn">返回</view>
		</view>
	</view>
</template>

<script setup>
	import config from '@/config.js';
	const props = defineProps({
		success: {
			type: Boolean,
			default: false
		}
	});
	const emit = defineEmits(['successReturn','failReturn']);
	const successReturn = () => {
		emit('successReturn', '成功返回');
	};
	const failReturn = ()=>{
		emit('failReturn', '失败返回');
	}
</script>

<style>
</style>